const http = require('http');

let server = http.createServer((req,res)=>{
  console.log(req.url);
  switch(req.url){
    case '/aaa':
    res.write('aaa');
    break;
    case '/bbb':
    res.write('bbb');
    break;
    case '/ccc':
    res.write('ccc');
    break;
  }
  res.end();
});

server.listen(8080);
